<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        var r=prompt('你好');
        console.log(r);
        var r=confirm('你');
        console.log(r);
       window.alert(1)
    </script>
</body>
</html>